import { request } from 'thinkive-hvue'

// 查询投顾列表
export function touguList(params, options) {
  return new Promise((resolve, reject) => {
    let _params = {
      funcNo: '2001100',
      type: '1',
      curPage: 1,
      numPerPage: 8,
    }
    //let dd = getRequestParam(_params)
    request({ _params, params, options }).then(
      res => {
        resolve(res)
      },
      err => {
        reject(err)
      },
    )
  })
}

// 查询投顾计划收益相关数据
export function yieldDetail(params, options) {
  return new Promise((resolve, reject) => {
    let _params = {
      funcNo: '2001101',
    }
    request({ _params, params, options }).then(
      res => {
        resolve(res)
      },
      err => {
        reject(err)
      },
    )
  })
}

// 查询投顾详情
export function touguDetail(params, options) {
  return new Promise((resolve, reject) => {
    let _params = {
      funcNo: '2001108',
    }
    request({ _params, params, options }).then(
      res => {
        resolve(res)
      },
      err => {
        reject(err)
      },
    )
  })
}
